<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ES6中的let和const</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
    </div>

    <script>
        function testVarLet(){
            if(true){
                var varVariable="我是var声明的变量";
                let letVariable="我是let声明的变量";
            }
            console.log(varVariable);
            console.log(letVariable);
        }
        //testVarLet();
        function testconst(){
            const greeting="Hello Vue3";
            greeting="Hello,Javascript";
        }
        testconst();
    </script>
</body>
</html>
